package ru.xrm.selenium.model;

public class FullFilmInfo {
	
	private String id;
	private String name;
	private String imdb;
	private String title;
	private String year;
	private String notes;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((imdb == null) ? 0 : imdb.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((notes == null) ? 0 : notes.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((year == null) ? 0 : year.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FullFilmInfo other = (FullFilmInfo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (imdb == null) {
			if (other.imdb != null)
				return false;
		} else if (!imdb.equals(other.imdb))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (notes == null) {
			if (other.notes != null)
				return false;
		} else if (!notes.equals(other.notes))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (year == null) {
			if (other.year != null)
				return false;
		} else if (!year.equals(other.year))
			return false;
		return true;
	}
	
	
	public String getName() {
		return name;
	}
	public FullFilmInfo setName(String name) {
		this.name = name;
		return this;
	}
	public String getId() {
		return id;
	}

	public FullFilmInfo setId(String id) {
		this.id = id;
		return this;
	}
	public String getImdb() {
		return imdb;
	}
	public FullFilmInfo setImdb(String imdb) {
		this.imdb = imdb;
		return this;
	}
	public String getTitle() {
		return title;
	}
	public FullFilmInfo setTitle(String title) {
		this.title = title;
		return this;
	}
	public String getYear() {
		return year;
	}
	public FullFilmInfo setYear(String year) {
		this.year = year;
		return this;
	}
	public String getNotes() {
		return notes;
	}
	public FullFilmInfo setNotes(String notes) {
		this.notes = notes;
		return this;
	}	
}
